<!-- 存钱tabbar页面中的组件 -->
<template>
	<view>
		<!-- 存钱页面 -->
		<view v-show="index===0" class="savingMOney">
			<view>
				<u-grid :border="true">
					<u-grid-item v-for="(baseListItem,baseListIndex) in baseList" :key="baseListIndex">
						<image :src="baseListItem.path" mode=""></image>
						<text class="grid-text">{{baseListItem.title}}</text>
					</u-grid-item>
				</u-grid>
			</view>
			<view class="show_savingType">
				<view class="show_savingType_item">
					
				</view>
				<view class="show_savingType_item">
					
				</view>
				<view class="show_savingType_item">
					
				</view>
				<view class="show_savingType_item">
					
				</view>
			</view>
		</view>
		<!-- 记账页面 -->
		<view v-show="index===1" class="account">
			<view class="account_title">
				<text @click="active=1" :class="active===1?'active':''">支出</text>
				<text @click="active=2" :class="active===2?'active':''">收入</text>
			</view>
		</view>
		<!-- 转账页面 -->
		<view v-show="index===2" class="transfer">
			转账
		</view>
	</view>
</template>

<script>
	export default {
		name: "savingOrAccount",
		data() {
			return {
				baseList: [{
						path:require('@/static/阿也AHYEA-数字大赛12.png'),
						title:'365天存钱'
					},
					{
						path:require('@/static/阿也AHYEA-数字大赛12.png'),
						title:'365天存钱'
					},
					{
						path:require('@/static/阿也AHYEA-数字大赛12.png'),
						title:'365天存钱'
					},
					{
							path:require('@/static/阿也AHYEA-数字大赛12.png'),
							title:'365天存钱'
						},
						{
							path:require('@/static/阿也AHYEA-数字大赛12.png'),
							title:'365天存钱'
						},
						{
							path:require('@/static/阿也AHYEA-数字大赛12.png'),
							title:'365天存钱'
						},
						
				],
				active:0
			};
		},
		props: ['index']
	}
</script>

<style scoped>
    .swiper {
        height: 720rpx;
    }

    .grid-text {
        font-size: 14px;
        color: #909399;
        padding: 10rpx 0 20rpx 0rpx;
        /* #ifndef APP-PLUS */
        box-sizing: border-box;
        /* #endif */
    }
	.show_savingType{
		width: 700rpx;
		margin: 20rpx;
		overflow: scroll;
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	image{
		height: 260rpx;
		width: 100%;
	}
	.show_savingType_item{
		width: 650rpx;
		height: 200rpx;
		border: 1px solid;
	}
	.account_title{
		width: 300rpx;
		font-size: 20px;
		margin: 10px auto;
		display: flex;
		justify-content: space-between;
	}
	.active{
		color: orangered;
	}
</style>
